package com.tour.pojo;

import java.util.Date;

public class Order {
    private Long orderId;

    private String productName;

    private Integer userId;

    private Integer payment;

    private Integer paymentType;

    private Integer status;

    private Date paymentTime;

    private Date createTime;

    private Date updateTime;

    public Order(Long orderId, String productName, Integer userId, Integer payment, Integer paymentType, Integer status, Date paymentTime, Date createTime, Date updateTime) {
        this.orderId = orderId;
        this.productName = productName;
        this.userId = userId;
        this.payment = payment;
        this.paymentType = paymentType;
        this.status = status;
        this.paymentTime = paymentTime;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    public Order() {
        super();
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName == null ? null : productName.trim();
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getPayment() {
        return payment;
    }

    public void setPayment(Integer payment) {
        this.payment = payment;
    }

    public Integer getPaymentType() {
        return paymentType;
    }

    public void setPaymentType(Integer paymentType) {
        this.paymentType = paymentType;
    }

    
//  public int getStatus() {
//		return status;
//  }

  public String getStatus() {
  	if(status==0){
  		return "未付款";
  	}else{
  		return "已付款";
  	}
  }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getPaymentTime() {
        return paymentTime;
    }

    public void setPaymentTime(Date paymentTime) {
        this.paymentTime = paymentTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}